home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
ctutord.EXE
/
52.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-09-17
|
457b
|
21 lines
/*
There may be additional include files required depending
upon the compile product you are using. Typical compilers
include Microsoft C by Microsoft or Turbo C by Boland Int'l.
*/
#include <stdio.h>
main()
{
static char string[] = "Hi";
static int numbers[5] = { 1,2,3};
int i,j;
for(i=0; string[i] != '\0'; i++) {
printf("character is: %c\n",string[i]);
for(j=0; j<3; j++)
printf("number is: %d\n",numbers[j]);
}
}